package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.Message;
import com.atguigu.gulimall.auth.viewVo.SocialUser;
import com.atguigu.gulimall.auth.viewVo.UserLoginVo;
import com.atguigu.gulimall.auth.viewVo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping(value = "/member/member/register")
    Message register(@RequestBody UserRegisterVo vo);

    @PostMapping(value = "/member/member/login")
    Message login(@RequestBody UserLoginVo vo);

    @PostMapping(value = "/member/member/oauth2/login")
    Message oauthLogin(@RequestBody SocialUser socialUser) throws Exception;

    /*@PostMapping(value = "/member/member/weixin/login")
    Message weixinLogin(@RequestParam("accessTokenInfo") String accessTokenInfo);*/
}
